package cn.wusifx.zabbix.request.builder.image;

import cn.wusifx.zabbix.request.BaseRequest;
import cn.wusifx.zabbix.request.builder.UpdateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/image/update
 */
public class ImageUpdateRequestBuilder extends UpdateRequestBuilder {
    private String imageId;
    public ImageUpdateRequestBuilder(String auth) {
        super("image.update", auth);
    }

    public ImageUpdateRequestBuilder(Long id, String auth) {
        super("image.update", id, auth);
    }

    public String getImageId() {
        return imageId;
    }

    public ImageUpdateRequestBuilder setImageId(String imageId) {
        this.imageId = imageId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("imageid",imageId);
        return baseRequest;
    }
}
